package com.xy.smartsms.helper;

import android.os.Handler;

/**
 * Created by admin on 2017/8/28 0028.
 */

public class SmartSmsMenuOptions {
    private final int stubId;
    private final int changeId;
    private final int editId;
    private final Handler handler;

    private SmartSmsMenuOptions(Builder builder) {
        this.stubId = builder.stubId;
        this.changeId = builder.changeId;
        this.editId = builder.editId;
        this.handler = builder.handler;
    }

    public int getStubId() {
        return stubId;
    }

    public int getChangeId() {
        return changeId;
    }

    public int getEditId() {
        return editId;
    }

    public Handler getHandler() {
        return handler;
    }

    public static class Builder {
        private int stubId;
        private int changeId;
        private int editId;
        private Handler handler;

        public Builder() {
            this.handler = null;
        }

        public Builder setStubId(int stubId) {
            this.stubId = stubId;
            return this;
        }

        public Builder setChangeId(int changeId) {
            this.changeId = changeId;
            return this;
        }

        public Builder setEditId(int editId) {
            this.editId = editId;
            return this;
        }

        public Builder setHandler(Handler handler) {
            this.handler = handler;
            return this;
        }

        public SmartSmsMenuOptions build() {
            return new SmartSmsMenuOptions(this);
        }
    }
}
